Defining structure types

The DEFINE-STRUCTURE-TYPE macro is a convenient way to define a new structure type and its associated constructor, predicator, and component selectors. DEFINE-STRUCTURE-TYPE is a macro defined in terms of MAKE-STYPE and the other low-level routines described in the next section. One may want to define one's own interface to these routines, one that initializes the components when a new instance is constructed, for example.

Special form


\begin{inset}{}
Creates a structure type (using {\tt MAKE-STYPE}),
and defines a...
...accessed as {\tt (EMPLOYEE-NAME SELF)} {\bf not} as {\tt NAME}.
\par
\end{inset}